﻿using System.Runtime.Serialization;

namespace WP7BackupService
{
	/// <summary>
	/// A class that defines the file to upload
	/// </summary>
	[DataContract]
	public class FileUploadInfo
	{
		/// <summary>
		/// the specific application for which we are storing the file
		/// </summary>
		[DataMember]
		public string Application;

		/// <summary>
		/// The tag that identifies the backup set
		/// </summary>
		[DataMember]
		public string Set;

		/// <summary>
		/// The name of the file to mirror on the  server
		/// this will contain the full path as you have it inside the 
		/// IsolatedStorage
		/// </summary>
		[DataMember]
		public string Name;

		/// <summary>
		/// The content bytes to send
		/// </summary>
		[DataMember]
		public byte[] Bytes;
	}
}